//项目接口相关的函数
import request from "../../utils/request"

//项目列表
export const projects = (params) => {
  return request.get("/api/projects/index", { params })
}
//查询单个项目
export const seeProjects = (params) => {
  return request.get("/api/projects/show", {params})
}
//编辑单个项目
export const editProjects = (data) => {
  return request.post("/api/projects/update", data)
}
//软删除单个项目
export const delProjects = (data) => {
  return request.post("/api/projects/destroy", data)
}
//软删除批量项目
export const delProjectsMore = (data) => {
  return request.post("/api/projects/destroyMore", data)
}
//项目回收站
export const projectsrecycle = (params) => {
  return request.get("/api/projects/recycle", { params })
}
//组织架构编辑
export const Editorganized = (data) => {
  return request.post("/api/organized/edit_title", (data))
}

//项目回收站永久删除
export const projectsdelete = (data) => {
  return request.post("/api/projects/delete", data)
}
//项目回收站批量永久删除
export const projectsdeleteMore = (data) => {
  return request.post("/api/projects/deleteMore", data)
}
//项目回收站恢复
export const projectsretrieve = (data) => {
  return request.post("/api/projects/retrieve", data)
}
//项目回收站批量恢复
export const projectsretrieveMore = (data) => {
  return request.post("/api/projects/retrieveMore", data)
}

//参建单位列表
export const partCompanies = (params) => {
  return request.get("/api/part_companies/index", { params })
}
//查询单个参建单位列表
export const seepartCompanies = (params) => {
  return request.get("/api/part_companies/show", {params})
}
//软删除单个参建单位列表
export const delpartCompanies = (data) => {
  return request.post("/api/part_companies/destroy", data)
}
//软删除批量参建单位列表
export const delpartCompaniesMore = (data) => {
  return request.post("/api/part_companies/destroyMore", data)
}
//新增参建单位
export const AddCompanies = (data) => {
  return request.post("/api/part_companies/edit", (data))
}

//编辑参建单位
export const CompaniesModify = (data) => {
  return request.post("/api/part_companies/edit", data)
}
//参建单位回收站
export const partCompaniesrecycle = (params) => {
  return request.get("/api/part_companies/recycle", { params })
}
//参建单位回收站恢复
export const partCompaniesretrieve = (data) => {
  return request.post("/api/part_companies/retrieve", data)
}
//参建单位回收站批量恢复
export const partCompaniesretrieveMore = (data) => {
  return request.post("/api/part_companies/retrieveMore", data)
}
//参建单位回收站永久删除
export const partCompaniesdelete = (data) => {
  return request.post("/api/part_companies/delete", data)
}
//参建单位回收站批量永久删除
export const partCompaniesdeleteMore = (data) => {
  return request.post("/api/part_companies/deleteMore", data)
}
//选择分类目录
export const Setclassifies = (data) => {
  return request.post("api/part_companies/set_classifies", data)
}
//选择施工单位
export const getConstruct = (params) => {
  return request.get("api/part_companies/get_construct_units", { params })
}
//确定施工单位
export const matchConstruct = (data) => {
  return request.post("api/part_companies/match_construct_unit", data)
}
